package net.cachedb4j.service;

import java.util.List;

import net.cachedb4j.domain.User;
import net.cachedb4j.exception.UserExistedException;

public interface UserService {
	
	public void addUser(User user) throws UserExistedException;
	
	public void addUsers(List<User> user);
	
//	public User addAndReturnUser(User user);
	
	public User getUserById(long id);
	
	public User getUserByUsername(String username);
	
	public User getUserByUsernameAndPassword(String username, String password);
	
	public User updateUser(User user);
	
	public void updateUsers(List<User> users);
	
	public void deleteUser(long id);
	
	public void deleteUser(User user);
	
	public void deleteUser(List<User> user);
	
}
